package com.fate.feign;

import com.fate.domain.Order;
import com.fate.domain.UserAddr;
import com.fate.feign.hystrix.OrderMemberFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "member-service",fallback = OrderMemberFeignHystrix.class)
public interface OrderMemberFeign {
    /**
     * 获取用户的默认的收货地址
     */
    @GetMapping("/p/address/getUserDefaultAddr")
    UserAddr getUserDefaultAddr(@RequestParam String userId);
}
